package com.zhiyou100.entity;


import java.io.Serializable;
import java.util.List;

/**
 * 参加学生会的学生
 *
 * @author yang
 */
public class StudentUnion implements Serializable {

    private Integer sid;
    private String sname;
    private Integer sage;
    private String sex;
    private Float score;
    /**
     * 记录该学生参加了什么社团
     */
    private List<UnionList> list;


    public StudentUnion() {
    }

    public StudentUnion(Integer sid, String sname, Integer sage, String sex, Float score, List<UnionList> list) {
        this.sid = sid;
        this.sname = sname;
        this.sage = sage;
        this.sex = sex;
        this.score = score;
        this.list = list;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getSage() {
        return sage;
    }

    public void setSage(Integer sage) {
        this.sage = sage;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public List<UnionList> getList() {
        return list;
    }

    public void setList(List<UnionList> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "StudentUnion{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", sage=" + sage +
                ", sex='" + sex + '\'' +
                ", score=" + score +
                ", list=" + list +
                '}';
    }
}
